﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using StoragePeriod.Common;
using StoragePeriod.Web.UserControls;
using StoragePeriod.Data;
using System.Web.Security;

namespace StoragePeriod.Web
{
    public partial class About : SecurityPage
    {
        public override void TreeSelectChange()
        {
            base.TreeSelectChange();
        }
        public override string PrivCode()
        { 
            return "Default";
        }


        protected void Page_Load(object sender, EventArgs e)
        {
            LeftTree.SelectedChanging += new MaterialTree.TreeEventDelegate(LeftTree_SelectedChanging);

            using (StoragePeriodDataContext dataContext = new StoragePeriodDataContext())
            {
                GridView1.DataSource = dataContext.Role;
                GridView1.DataBind();
            }

            string iuser = User.Identity.Name;

        }

        void LeftTree_SelectedChanging(Dictionary<string, string> selectedDic)
        {
            foreach (var item in selectedDic)
            {

              lb_selected.Text += item.Key + "-" + item.Value;
            }
        }
    }
}
